package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.NewsAllocationMapper;
import com.base.po.voip.NewsAllocation;
import com.base.po.voip.NewsAllocationExample;
import com.base.service.NewsAllocationService;

@Service("newsAllocationService")
public class NewsAllocationServiceImpl implements NewsAllocationService {
	@Autowired
	private NewsAllocationMapper newsAllocationMapper;

	@Override
	public int countByExample(NewsAllocationExample example) {
		
		return newsAllocationMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(NewsAllocationExample example) {
		
		return newsAllocationMapper.deleteByExample(example);
	}

	@Override
	public int insert(NewsAllocation record) {
		
		return newsAllocationMapper.insert(record);
	}

	@Override
	public int insertSelective(NewsAllocation record) {
		
		return newsAllocationMapper.insertSelective(record);
	}

	@Override
	public List<NewsAllocation> selectByExample(NewsAllocationExample example) {
		
		return newsAllocationMapper.selectByExample(example);
	}

	@Override
	public int updateByExampleSelective(NewsAllocation record, NewsAllocationExample example) {
		
		return newsAllocationMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(NewsAllocation record, NewsAllocationExample example) {
		
		return newsAllocationMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(NewsAllocation record) {
		
		return newsAllocationMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public NewsAllocation selectByParentid(String parentid) {
		
		return newsAllocationMapper.selectByParentid(parentid);
	}

	@Override
	public NewsAllocation selectByPrimaryKey(String id) {
		
		return newsAllocationMapper.selectByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		
		return newsAllocationMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(NewsAllocation record) {
		
		return newsAllocationMapper.updateByPrimaryKey(record);
	}
}
